I want to create a fairly simple web application(can be achieved in one page or in the plugin ) using Wordpress
This forex clock does is that it shows where we are in the international time, and what financial markets are open
Demo is here http://www.forexmarkethours.com/markethours.php
Can see few more examples related to this there .https://www.forex4noobs.com/forex-tools/forex-clock/
Can someone guide me or give me a few backend shortcodes for this.
Всем привет!
В проекте есть код для переключения версии сайта (моб/десктоп), подвязано все на метод контроллера и значения куки
class VersionController extends Controller
{
public function switch($type = null)
{
dd(1);
if ($type) {
if ($type == 'desktop') {
Version::setDesktop();
} else if ($type == 'mobile') {
Version::setMobile();
}
} else {
if(Version::isMobile()) {
Version::setDesktop();
} else {
Version::setMobile();
}
}
return redirect()->back(301, [
'Cache-Control' => 'no-cache, no-store, must-revalidate'
]);
}
}
но этот метод я так понимаю кешируется и перестает корректно отрабатывать. К примеру, я сейчас вставил в начало метода dd(1)
и эта правка игнорируется. Можно ли отключить кеш на определенном роуте?
return redirect()->back(301)
->header("pragma", "no-cache")
->header("Cache-Control", "no-store,no-cache, must-revalidate, post-check=0, pre-check=0");