Hi @stanleylitespeed
Thanks for your quick reply.
The dashboard is wordpress, but we have created some custom dashboard links that provide better support for our clients.
I don’t understand that very well …
Would you help me?
I need to create a URL for PURGE ALL cache: example
https://example.com/wp-admin/purge_all
THANKS AGAIN!
Plugin Support
qtwrk
(@qtwrk)
Hi,
The easiest way is that you can create a php file , with code:
<?php
header('X-LiteSpeed-Purge: *');
exit;
let’s say you name it purge.php
then every time you access https://your_domain.com/purge.php
it will purge everything.
But you better add some authentication and verification to prevent it from public access.
Best regards,
@qtwrk
Very good!
Worked well!
But this way the client clicks on this LINK, he goes out of the wordpress panel.
Is there any redirect or something, to get the client back to the wordpress panel?
Thank you so much again!
Plugin Support
qtwrk
(@qtwrk)
Hi,
You can add another header function to redirect , like
header('Location: https://www.example.com/wp-admin');
or make the link opens with new browser windows , like
<a href="https://www.example.com/purge.php" target="_blank">press me to purge all</a>
the above code will open a new windows to that URI , so user won’t leave current page.
Best regards,
Everything perfect now.
Thank you!
Have a great night!
-
This reply was modified 6 years, 10 months ago by
mrimpact.