How to use wget to cache your website pages and mobile pages

so I found that you can use this line

wget –cache = off –delete-after -m

But if my website has different pages for mobile devices, how would I emulate a mobile device using wget to cache mobile pages?

reverse proxy – nginx for ascending cache selection

I wonder if anyone has an idea about this.

Several http clients are requesting (GET) a url.
This url is available ONLY on one of the five servers, and I can't know which one beforehand.

Note that "availability" does not depend on the url itself, but depends on an http header of the GET request: in fact, the User-Agent contains a client identifier and each client is "registered" only in one of these five servers The other servers will respond 404 to a request from a client that they do not "recognize" as theirs.

So far I created an "server" nginx:

upstream backend {
    server be1:81;
    server be2:82;
    server be3:83;
    server be4:84;
    server be5:85;
server {
    listen       80;
    location / {
        proxy_pass http://backend;
        proxy_next_upstream error timeout http_404 non_idempotent;

This really works (nginx tries to resend the request to all upstream servers until it finds a response of 200 Ok).

I wonder if I can improve the performance of this caching of the chosen upstream (not the actual result of the http get, but what upstream gave the 200OK response) for a given User-Agent.

Magento CACHE folder too large?

I have been checking the magento folder of / var / and I notice that every time I clean FPC in my magento manager the "cache" folder is not cleaned, the file size remains the same, how should I clean this?

what is strange there are also 2 files "cache_fpc" and "cache_fpc–" when I clean FPC inside magento the file "cache_fpc" changes and becomes smaller however the file "cache_fpc–" is still the same size?

What is the file "cache_fpc–" ???

Magento is version


Panic Report: The zone cache element was used after releasing it!

Can anyone explain what caused this? It happened twice, consecutively.
Panic Report:
enter the description of the image here

ShineServers.Com – WJ 10% recurring OFF | SSD cache disks, fully managed from $ 10 / m |

Shine Servers LLP is a private professional web hosting company based in India founded in 2010. Shine Servers offers the most complete range of secure, fully protected and private web hosting services in the world. All shared, VPS and dedicated servers are located in the Global Layer Data Center in the Netherlands.

Included with all VPS accounts:
– Fully managed
– 24/7 support
– Free migration
– 24/7 premium technical support
– 100% uptime guarantee
– Extremely safe environment
– ZERO oversold guarantee

Pay mode: PayPal, credit / debit cards, Bitcoin, Altcoins and Payza special offer! Get a 10% discount on your first bill! Promotional code: 10WJ2019

Here are some configurations of options to consider:

KVM512 For $ 10.00 USD / month
1 core
512 MB of RAM guaranteed
1024 MB Burstable RAM
30 GB of disk space
1.5 TB bandwidth
1 Gbit port
1 dedicated IP
SolusVM control panel

Click to place your order

KVM1024 For $ 15.50 USD / month
1 core
1024 MB of RAM guaranteed
2048 MB Burstable RAM
50 GB of disk space
3 TB bandwidth
1 Gbit port
1 dedicated IP
SolusVM control panel

Click to place your order

KVM2048 For $ 25.50 USD / month
2 cores
2048 MB of RAM guaranteed
3072 MB Burstable RAM
80 GB disk space
5 TB bandwidth
1 Gbit port
1 dedicated IP
SolusVM control panel

Click to place your order

KVM3072 For $ 35.50 USD / month
2 cores
3072 MB of RAM guaranteed
4608 MB of Burstable RAM
100 GB of disk space
7 TB bandwidth
1 Gbit port
1 dedicated IP
SolusVM control panel

Click to place your order

Don't see a plan that fits your needs? Do not worry
We can offer you a customized configuration to meet your needs.
Contact us with your requirements and we will send you a quote within 12 hours!
It is easy!

How to find us:
Send us an email: [protected email]
Contact directly through the contact form:
Website: ||

swift – Play audio and detect volumn stream in the microphone but in the application cache

I want to play audio and get volumn in the microphone in the work simulator, but I try to test on the device it doesn't work, the application cache in the game

init(url: URL) {
    engine = AVAudioEngine()
    player = AVAudioPlayerNode()
    player.volume = 1.0

    audioFile = try? AVAudioFile(forReading: url)
    songLengthSamples = audioFile.length

    let songFormat = audioFile.processingFormat
    sampleRateSong = Float(songFormat.sampleRate)
    lengthSongSeconds = Float(songLengthSamples) / sampleRateSong

    let buffer = AVAudioPCMBuffer(pcmFormat: audioFile!.processingFormat, frameCapacity: AVAudioFrameCount(audioFile!.length))
    do {
        try audioFile!.read(into: buffer!)
    } catch _ {

    pitch = AVAudioUnitTimePitch()
    pitch.pitch = 1
    pitch.rate = 1

    engine.connect(player, to: pitch, format: buffer?.format)
    engine.connect(pitch, to: engine.mainMixerNode, format: buffer?.format)
    player.scheduleBuffer(buffer!, at: nil, options: AVAudioPlayerNodeBufferOptions.loops, completionHandler: nil)

    let inputNode = engine.inputNode
    let recordingFormat = inputNode.outputFormat(forBus: 0)
    inputNode.installTap(onBus: 0, bufferSize: 1024, format: recordingFormat) { (buffer, when) in
        print(self.getVolume(from: buffer, bufferSize: 1024))


    do {
        try engine.start()
        self.deletedTmpName(nameFile: "out.m4a")
    } catch _ {

private func getVolume(from buffer: AVAudioPCMBuffer, bufferSize: Int) -> Float {
    guard let channelData = buffer.floatChannelData?(0) else {
        return 0

    let channelDataArray = Array(UnsafeBufferPointer(start:channelData, count: bufferSize))

    var outEnvelope = (Float)()
    var envelopeState:Float = 0
    let envConstantAtk:Float = 0.16
    let envConstantDec:Float = 0.003

    for sample in channelDataArray {
        let rectified = abs(sample)

        if envelopeState < rectified {
            envelopeState += envConstantAtk * (rectified - envelopeState)
        } else {
            envelopeState += envConstantDec * (rectified - envelopeState)

    if let maxVolume = outEnvelope.max(),
        maxVolume > Float(0.015) {
        return maxVolume
    } else {
        return 0.0

I try to use the " ()" application

Error message " ()"

2020-02-11 11: 13: 03.334891 + 0700 PoCMusicTranspose (990: 319219) (avae)
AVAEInternal.h: 76 the required condition is false:
( (_engine-> IsRunning ()))

2020-02-11 11: 13: 03.338781 + 0700 PoCMusicTranspose (990: 319219) ***
Application termination due to an exception not detected
& # 39; & # 39 ;, reason: & # 39; the required condition is false:
_engine-> IsRunning () & # 39;

*** First launch call stack: (0x1ab376a48 0x1ab09dfa4 0x1ab278e88 0x1b7e6db8c 0x1b7e6dafc 0x1b7f0eeb8 0x1b7f0c87c 0x1004b4438
0x1004a65b0 0x1004a67e8 0x1af3fd9ac 0x1aee33fbc 0x1aee34320
0x1aee3333c 0x1af437050 0x1af438390 0x1af414a9c 0x1af48cc20
0x1af48f17c 0x1af487ff0 0x1ab2f4a00 0x1ab2f4958 0x1ab2f40f0
0x1ab2ef23c 0x1ab2eeadc 0x1b528f328 0x1af3fc63c 0x1004c8ff4
0x1ab178360) libc ++ abi.dylib: ends with the exception not captured from
type NSException (lldb)

8 – Clearing cache error

I have a problem with a website I am working on.
When I clear the cache at my local site, the staging is broken.
When I clear the cache there, it works again, but this time the place doesn't work anymore …

Any idea what is causing this error?

I receive this as an error message in my terminal for the local site:

PHP exception not captured Drupal Component Plugin Exception PluginNotFoundException: "The entity type" path_alias "does not exist". in … / web / core / lib / Drupal / Core / Entity / EntityTypeManager.php line 150

cache: Memcached does not work in a PHP file but works in SSH – CentOS

In my CentOS 7, Memcached runs and works in SSH but does not work in the PHP file. I have followed this article: This method worked fine on my previous server.

I have tried Memcached using telnet. It works well.

$ telnet 11211
Connected to
Escape character is '^)'.
set test 0 100 5
get test
VALUE test 0 5

After storing data using telnet, I tested in SSH through the PHP command. It also works:

php -r '$c = new Memcached(); $c->addServer("", 11211); var_dump( $c->getAllKeys() );'
array(1) {
  string(4) "test"

But in the PHP file, it doesn't work. The PHP code:

addServer("", 11211);
var_dump( $c->getAllKeys() );

Always shows bool(false). Here is the screenshot of my PHP information.

Could you tell me what my mistake is? Thank you. πŸ™‚

Unity SkinnedMeshRender: is there a way to cache the mesh and restore it later?

In unity, I am writing a script that deforms a mesh associated with a SkinnedMeshRenderer quite significantly. However, at some point, I would like to restore it to particular states. I would like the possibility of restoring its original position and an intermediate position.

At this time, I tried to bake the mesh:

Mesh originalMesh = new Mesh();

But when I try to restore it:

skinnedMeshRenderer.sharedMesh = originalMesh;

He doesn't seem to behave as he would have expected.

I have also tried:

Mesh originalMesh = skinnedMeshRenderer.sharedMesh;
//deform sharedMesh
skinnedMeshRenderer = originalMesh;

but this does nothing, since it seems to be just storing a reference.

Am I missing something obvious here?

Just to add details, I want to take a snapshot of all vertices, weights, mixing forms, etc. And then restore everything to the snapshot at a later time. I can restore the mixing forms well, but the mesh seems to be messy.

cache: how to end the process while closing, Firefox

Firefox has a button to exit its menu. My settings are marked to erase all data upon closing. However, exiting Firefox still leaves the process running and the cache is not empty. So, to really quit, I have to: Configuration | Applications | Firefox, then tap & # 39; Force stop & # 39; and & # 39; Clear cache & # 39 ;. I end up doing this a couple of times a day. A couple of times a year, by mistake, I touch & # 39; Clear data & # 39 ;, which is disastrous because configurations and add-ons are lost.

The mozilla website argues that stop and clear are tasks of the operating system. So here I am.

How can I, an end user, transmit this? Maybe set up the operating system to finish the process when Firefox closes?

In addition to that, is it possible for an end user to add a shortcut to the home screen: Settings | Applications | Firefox