Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7668311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:19:54+00:00 2026-05-31T15:19:54+00:00

I am using a really simple FAST caching technique. I just implemented this techniuqe

  • 0

I am using a really simple FAST caching technique. I just implemented this techniuqe and it is great.

I have a row on my database that counts page views. This is also a very simple technique.

$query_rs_update = sprintf(“UPDATE table SET views = views+1 WHERE id
= %s”, GetSQLValueString($colname_DetailRS1, “int”));

I can not find a way to use this technique and COUNT the VIEWS at the same time. Since the Page is being Cached .. ?

Anyone have a better technique? Can you turn a Query to Javascript so it will work using Caching ?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T15:19:56+00:00Added an answer on May 31, 2026 at 3:19 pm

    There might be specific reasons to do it way you’re doing, but it’s generally considered bad practice to track pageviews or activity via MySQL. Your two problems now are that pages are cached, and the tracking ability will be severely underpowered. For example, you’ll be missing an ability to separate organic vs robot traffic.

    It’s best to allow an independent, trusted and capable metrics vendor to do that tracking as they do it for a living – and they can provide a rich dataset to explore.

    Warning: check your host’s TOS

    Note that some hosting companies explicitly forbid forms of ‘performance tracking’ for managed SQL uses in their terms of service (count increment might apply here, since it can alter index information.) Unless you’re using InnoDB storage engine, the performance will always be bad because the table is locked for all reads until the update is finished.

    Use Google Analytics

    There are limitations to GA, but the positives are that:

    • CACHING: it bypasses any local caching schemas
    • EFFICIENCY: offloads tracking overhead resources onto the client
    • PRICE: it’s free to use
    • FILTER: robot traffic is removed from human activity
    • BROWSE: reports can be neatly organized, shared and explored
    • WRITE: has virtual page tracking (so your unique Ajax-dynamic page interaction can still be tracked)
    • READ: there is an API you can use to retrieve the data; ex: most viewed (see http://www.electrictoolbox.com/google-analytics-api-php-class-most-popular-pages/)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just found out that I can write a really simple web server using
This is a simple question really. I've been using the new type of constructors
Hi I'm using contact form 7 with Really Simple CAPTCHA, but it's throwing up
Just wanted to know if anyone is really using Objects and Collections in Oracle
I have a little problem about using jQuery (I really do not know jQuery
Let's imagine really simple game... We have a labirinth and two players trying to
I'm using LinqToSql to query a small, simple SQL Server CE database. I've noticed
I've written a simple GDI-based data plotter using C++/CLI but it's not particularly fast
I have a very simple server/client performance test using boost::asio on Windows and it
I have a GUI written using netbeans with a few simple components in place.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.