Flush Cache with broken website

georg yurij Posted in Technical Support 2 weeks ago

Greetings,
I was working with OSSN again and forgot to deactivate the caching while I was working on the code. The page no longer works, although I have fixed the error.
Does this let you do a flush cache by calling a script or something similar?

thanks for the support

Replies
vn Laura Clinton Replied 4 days ago

You can attempt to clear the cache by visiting the URL directly. OSSN often has a built-in function for this:
bash
Copy code
http://your-ossn-site-url/administrator?flush_cache=true
Replace your-ossn-site-url with your actual site URL.
Or you can try this
If the URL method doesn't work, you can manually create a PHP script to flush the cache:

Create a PHP file in your root directory with the following content:
php
Copy code
<?php
// Load OSSN framework
require_once('path-to-ossn/ossn.bootstrap.php');

// Trigger cache flush
ossntriggercallback('ossn', 'cache:flush');

echo "Cache flushed successfully!";
?>
Replace path-to-ossn with the correct path to your OSSN installation.
Run this script via your browser.

hills of steel

German Dominik L Replied 6 days ago

You need to deactivate the cache in the database

Open Database -> OSSN_Site Settings and then cache value from 1 to 0