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

How can I show dynamic content while caching the page? #124

Closed
renzms opened this issue Jul 14, 2016 · 4 comments

Comments

Projects
None yet
3 participants
@renzms
Copy link

commented Jul 14, 2016


KB Article Creation Checklist
  • Write initial draft for this KB Article; label this issue draft and either questions or tutorials
  • Add required YAML configuration
  • Add Tags for this KB Article to the YAML config (see YAML Keys (Explained))
  • Edit and finalize draft for publishing (remove draft label, add draft-finalized label)
  • Assign Issue to yourself and create Markdown file (remove draft-finalized label, add pending)
  • Project Lead: Review and Publish KB Article (remove pending label, add published label)
Additional TODOs

Additional TODO list items go here.


KB Article Published @ cometcache.com
📃 See: How can I show dynamic content while caching the page?

:octocat: View Markdown File | ✏️ Edit Markdown File


@renzms renzms referenced this issue Jul 14, 2016

Closed

Frequently Asked Questions #120

2 of 6 tasks complete
@renzms

This comment has been minimized.

Copy link
Author

commented Jul 25, 2016

@raamdev

Added tags and updated the article, let me know if there's anything else needed, thanks!

@jaswrks

This comment has been minimized.

Copy link

commented Jul 26, 2016

that is being cached (a Page View Counter widget on the Home Page, for example)

For improved clarity, I suggest starting this bracketed example with the words (e.g.,) to indicate it's an example that you're giving when you start reading it, instead of saying, , for example at the end of the sentence.

content (a counter, for example)

This is fine, because it is short. The longer example is harder to figure out.

With Comet Cache Lite, you will need to write some PHP code in your wp-config.php file to dynamically detect the page with the dynamic content and then set define(COMET_CACHE_ALLOWED, FALSE); to prevent Comet Cache from caching that particular page.

I suggest excluding this 'lite' solution from the article, as it requires custom code which is unnecessary when you upgrade to pro. Our objective should be to sell pro features whenever we can, and this is a great opportunity to do that.

@raamdev

This comment has been minimized.

Copy link
Contributor

commented Jul 26, 2016

With Comet Cache Pro this can be done using the URI Exclusion Patterns feature

That is no longer true. URI Exclusion Patterns are available in the Lite version now (it used to be a Pro-only feature, but its been a Lite feature for over a year now).

@renzms

This comment has been minimized.

Copy link
Author

commented Jul 27, 2016

@jaswsinc @raamdev

Updated according to your notes, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.