Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

cache

How to make page/post password protected so you must reenter everytime you visit the page?

Stop what you’re doing – it’s so much simpler! function wpse_191369_post_password_expires() { return time() + 10; // Expire in 10 seconds } add_filter( ‘post_password_expires’, ‘wpse_191369_post_password_expires’ ); That’s all you need.

Categories cache Tags cache, password, session

Accelerate and clean up WordPress [closed]

You can host your WordPress on a server with PHP 7 running on SSD. It speeds up by alot.

Categories cache Tags cache, customization

After having installed APC Object Cache Backend transients stopped working

After having installed APC Object Cache Backend transients stopped working

Categories cache Tags apc, cache, transient

Batcache messages no longer in page source

Sigh. Ever humbling servers and sites are. The problem was with being logged in – the cache message shows up when using a browser where I’m not logged in. “Problem” solved.

Categories cache Tags cache

WordPress PHP 5.5 and OPcache

WordPress PHP 5.5 and OPcache

Categories cache Tags cache

Hook an action when a transient is deleted ? Can’t get it to work!

Transients are generally cleared when read. If you want to check for this common case, you could catch the pre_transient_transientname and see if it expired, the same way WP is doing: function get_transient( $transient ) { /** * Filter the value of an existing transient. * * The dynamic portion of the hook name, `$transient`, … Read more

Categories cache Tags cache, transient

How to decode wordpress transient cache stored in database?

How to decode wordpress transient cache stored in database?

Categories cache Tags cache, transient

Live website is not showing the changes I’ve made [closed]

Disable caching plugins Purge cache from browser Have you altered caching yourself in any way? If youre using any CDN like Cloudflare, enable dev mode and purge cache from their side Refresh page with shift + F5 which ignores cache If you’re making changes in CSS or JS for example, make sure to take a … Read more

Categories cache Tags cache, hosting, server

How to store or cache custom shopping cart data for every user’s session

Transients can be used but you’d need to make sure they don’t expire earlier than you want. I answered a similar question with a different goal here, but I’ve tried to keep the slightly different answer below self-contained. Option 1 – PHP Sessions I’ve been storing carts within a PHP session which is fine generally … Read more

Categories cache Tags cache, session, transient

WP_Object_Cache for heavy WP_Query

WP_Object_Cache for heavy WP_Query

Categories cache Tags cache, customization
Older posts
Newer posts
← Previous Page1 … Page11 Page12 Page13 … Page21 Next →
+ More

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Post Navigation Elementor
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • WPFacet multiple loop displaying duplicate content
  • Get the name of the template/*html file used
  • Fix: WordPress.DB.PreparedSQL.NotPrepared Plugin Check (PCP)
  • Removing unnecessary CSS and JS code from wp_head()
  • hexagonal image gallery. Am I on the right track? [closed]
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
© 2026 Read For Learn
Next Page »
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress