Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include an LCache Stats page in the WordPress admin #52

Open
danielbachhuber opened this issue Sep 8, 2016 · 3 comments
Open

Include an LCache Stats page in the WordPress admin #52

danielbachhuber opened this issue Sep 8, 2016 · 3 comments

Comments

@danielbachhuber
Copy link
Member

When the plugin is active, we should include an APCu status page in the WordPress admin so the end user easily knows whether the plugin is working or not.

From https://wordpress.org/support/topic/how-install-how-i-know-its-working/

@danielbachhuber
Copy link
Member Author

@joshkoenig @davidstrauss @stevector Suggestions on what APCu stats we might want to include on this page?

@joshkoenig
Copy link

joshkoenig commented Sep 8, 2016

I don't know what all stats are at hand, but I think:

  • Some kind of high-level "it's working" indicator:
    • Green: all systems go, hitrate is over 50%(?)
    • Yellow: functioning system, hitrate below 50%
    • Red: something is not working (e.g. no APCu, no L2 table, anything else that would make the system inoperative)
  • L1 stored data (vs APCu available)
  • L1 object count
  • L1 hitrate
  • L2 stored data
  • L2 object count
  • L2 hitrate

David also had some notions about instrumenting for "never read objects" and other anti-patterns that could be used to tune the cache and/or suggest upstream improvements in plugins or themes.

@danielbachhuber danielbachhuber modified the milestone: 0.2.0 Sep 12, 2016
@danielbachhuber danielbachhuber self-assigned this Sep 12, 2016
@danielbachhuber danielbachhuber modified the milestones: 0.4.0, 0.3.0 Sep 21, 2016
@joshkoenig joshkoenig changed the title Include an APCu status page in the WordPress admin Include an LCache Stats page in the WordPress admin Sep 29, 2016
@joshkoenig
Copy link

joshkoenig commented Sep 29, 2016

Ok, for a first pass (pending a design) here's what I'd like to see:

LCache Status

Message Condition
All systems go APCu hitrate > 50%
Cache hitrate low APCu hitrate < 50%
Installation incomplete Installation requirements not met

L1 Statistics

Statistic Explanation
L1 Hitrate A hitrate of 80% is considered best practice
L1 Objects Stored Guestimate at what an insane number might look like?
L1 Free Memory If under 33% free, show a warning

L2 Statistics

Statistic Explanation
L2 Hitrate A hitrate of 80% is considered best practice
L2 Objects Stored Guestimate at what an insane number might look like?

Ignored Objects (only show up if any are ignored)

If LCache detects that objects are being written more than they are read, it will stop caching them to save time. You can probably improve the performance of your site by cleaning up the code around the objects listed below:

Object Count
Some ACF Fields A million writes!

@danielbachhuber danielbachhuber modified the milestones: 0.4.0, 0.5.0 Oct 5, 2016
@danielbachhuber danielbachhuber removed their assignment Oct 28, 2016
@danielbachhuber danielbachhuber removed this from the 0.5.0 milestone Oct 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants