• Hello,
    I need to refresh the static page cache every time a new order appears in the database. Can you help me with that how to set up?
    Thank you.

Viewing 1 replies (of 1 total)
  • You can use the function wpsc_delete_files( $directory, true );

    $directory is the directory where your static page is cached. The second true parameter tells the function to delete rather than using the “rebuild or delete” function to move the cached files out of the way.

    Call that function when a new order is made.

Viewing 1 replies (of 1 total)
  • The topic ‘A cache that depends on inserting or deleting a table entry in a database’ is closed to new replies.