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

  • SEARCH
  • Home
  • 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 3623750
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:25:20+00:00 2026-05-18T23:25:20+00:00

I have a WordPress Plug-in with users requesting a feature that is the view

  • 0

I have a WordPress Plug-in with users requesting a feature that is the view counter.

I know only a few approaches on making a view counter, and the problem is that I want to optimize for performance and memory issues.

I have done a small amount of research and it seems, “mod_log_mysql”, may be a great approach, but I do not have any prior knowledge on how this mod works, nor could have any ideas on how to connect it with the WordPress Plug-in.

Or I could use a database. When the page is viewed, an update or a insert (which is said to be faster than a update) event occurs.

Thus my following option are:

  1. Update/Insert on server side when
    the page is called for.
  2. Research more on mod_log_mysql and
    find a way to connect it with the
    plug-in.
  3. Find a Premade view counter.

If there is a better approach, I would like to hear them in hoping this will solve my problem.

  • 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-18T23:25:20+00:00Added an answer on May 18, 2026 at 11:25 pm

    It really depends on what you want to achieve and how much time you want to spend on it.

    If you need more than a simple view counter per page/event, go for a premade one.

    If you need something simple, I would go for option #1.

    If you’re worried about performance, use a memory table for staging the ‘counts’, and then have a php script move that into a regular table periodically (i.e. using a cronjob). I wouldn’t expect updating a view counter in a memory table to have any significant performance impact.

    Option #2 could easily fall into premature optimization category.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Wordpress blog site and I wanted the users to enter their email
I have a WordPress installation that has been targeted quite heavily by a phishing
I have a Wordpress blog and the only user input is the commenting system.
I have Wordpress in a subfolder in my site named blog. When I goto
I have a WordPress installation on my localhost: http://localhost:8888 I've uploaded the wp files
I have a wordpress website which I've added a couple of custom pages to.
I have a WordPress website with a custom theme. I'm using custom author template
I have a wordpress blog inside the company where I write blogs. I want
I am writing my first plug in and it was all going well unti
I need a intranet portal for a Repair factory in which 100 Technician worked.

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.