Posts by jhejlik

    Quote

    I created a text file and saved it as php.ini and the file only has one line in it (allow_url_fopen = On) and there is nothing else at all in the entire file, is this right?

    Yes, that's right, a new file containing only this one line.


    Quote


    Do you mean put this (php_value allow_url_fopen on) on line 123 and nothing more? No open and closing tags of any type, just that one line on line 123?

    Yes, you understand it correctly, php_value allow_url_fopen on to new last row without tags

    So my problem is solved but for the sake of others if you can tell me if there' s a way to recover the password as well that would be very nice!

    Hi,

    the password in table system_user is bcrypt format and that is a hash not encryption. The difference is that a hash is one-way, that is non reversible.

    The only choices are to add new bcrypt hash string into the database. Go to this page, enter a new password, choose round 10 and generate your hash string that you can paste into directly into the database.

    Hi SAB , thanks for the tip, I'll try it. But I'm afraid it is over my programming skills.

    I think it would be better separate extension rather than integration into the template. A fully working versioning system is today one of the basic needs of a webdesigner for website modifying in a production environment.

    Hi @Fossy, thank you for your effort to help me, but my question has not yet been answered:
    How to change the css/js revision parameter or under which conditions revision parameter is changed automaticaly?

    I found the code that adds the revision parameter in the /app/system/src/SystemModule.php file line 23-31. If I comment on it, the revision parameter will be removed.

    PHP: /app/system/src/SystemModule.php
    1. $app->extend('assets', function ($factory) use ($app) {
    2. $secret = $this->config['secret'];
    3. $version = substr(sha1($app['version'] . $secret), 0, 4);
    4. $factory->setVersion($version);
    5. return $factory;
    6. });

    But I'm not a php developer and I cann't find out more from this :(

    Well I clear always cache in pagekit backen when I'm sure the changes done how I want. Then it should not impact visitors experience.


    Unfortunately, that's not true. The visitor is still loading css/js files from his browser cache because the filename with parameter is the same. Lifetime of filetypes in cache define nginx or apache settings.

    In the pagekit admin you can clean clean the cache folder but it has nothing to do with browser cache.


    For example, my nginx webserver has this setting:


    Code
    1. location ~ \.(js|css|png|jpg|jpeg|gif|ico|html|woff|ttf|svg|eot|otf)$ {
    2. add_header "Access-Control-Allow-Origin" "*";
    3. expires 30d;
    4. access_log off;
    5. add_header Cache-Control "public";
    6. }


    These files will remain valid for 30 days after caching. Then the browser retrieves the files again.

    hmm never payed attention to those versions. Do you have any issues with that?

    Thanks for reply... I do not have a problem right now, but they can happen. If I make changes or addition in css/js, it must show up immediately and do not wait for cache expiration (which may be a day /week / month according to server settings). This is however the main reason for using versions parameter.

    You can also install a new extension Fields. After installation paste the (fields){"id":"server", "value":"DOCUMENT_ROOT"} string into your content. This shortcode returns absolute path of website root directory

    And your website has a robots.txt ?

    I do not use it.

    Robots.txt is necessary if the website contains content that should not be indexed, such as user dashboard, search results, etc.

    Most aggressive crawlers ignore it.

    Please tell me what should contain robots.txt for Page Kit for fast site indexing ?

    The file may be as for example:

    Some files are blocked by the configuration of the webserver, so there is no need to block them by the robots.txt file

    Czechia Food Blog of the Year. Small project but higher traffic, about 6000 visitors a day.

    Theme: custom based on One-theme

    Extensions: driven/manifest, driven/listings, spqr/redirect, spqr/seo, spqr/backups, spqr/sitemap - Thank's!

    VPS: 6 CPU / 8GB RAM, SSD, NginX, MySQL database (shared with more projects).

    Homepage TTFB: 95ms - measured when 320 active users. Even with higher traffic is Pagekit fast.


    foodblogroku.cz